﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace chihuopig.Web.verfiy
{
    public class roleaddVefiy
    {
        [MaxLength(20, ErrorMessage = "用户名最大长度20")]
        [Required(ErrorMessage = "角色名不能为空")]
        [CheckNameIsRep("Role", ErrorMessage = "角色名已经被占用,请重新输入")]
        public string RoleName { get; set; }

        [Required(ErrorMessage = "权限不能为空")]
        public long[] jurisd { get; set; }

        public long RoleId { get; set; }
    }
}
